package com.heima.hellospring.repository;

import com.heima.hellospring.domain.Student;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/** created by tms
 * 2024-11-17
 * 学生表的数据访问接口,(注意后面的integer表示id类型)
 */
public interface StudentRepository extends JpaRepository<Student,Integer> {

    List<Student> findByNameLike(String name);

    List<Student> findByStudentid(String studentid);
}

